sprintf(buf, "Windows Sockets version %d.%d not supported by winsock.dll", LOBYTE(wsaData.wVersion), HIBYTE(wsaData.wVersion));
MessageBox(NULL, buf, AfxGetAppName(), MB_OK);
WSACleanup();
return FALSE;
}
if (wsaData.iMaxSockets < (HowManyClients + 1))
{
sprintf(buf, "This application requires a minimun of %d supported sockets. Close other network applications and restart or change the .INI file entry for Number of Clients.", MIN_SOCKETS_REQD);
MessageBox(NULL, buf, AfxGetAppName(), MB_OK);
WSACleanup();
return FALSE;
}
// Continue with the window initialization now ......
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.
SetDialogBkColor(); // set dialog background color to gray
LoadStdProfileSettings(); // Load standard INI file options (including MRU)
// Register the application's document templates. Document templates
// serve as the connection between documents, frame windows and views.